package com.ruoyi.manage.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书对象 manage_book
 *
 * @author ruoyi
 * @date 2023-06-02
 */
public class ManageBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书id */
    private Long id;

    /** 书名 */
    @Excel(name = "书名")
    private String bookName;

    /** 作者 */
    @Excel(name = "作者")
    private String bookAuthor;

    /** 图书价格 */
    @Excel(name = "图书价格")
    private BigDecimal bookPrice;

    /** 入库人姓名 */
    @Excel(name = "入库人姓名")
    private Long userId;

    /** 图书简介 */
    @Excel(name = "图书简介")
    private String bookIntroduction;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public String getBookName()
    {
        return bookName;
    }
    public void setBookAuthor(String bookAuthor)
    {
        this.bookAuthor = bookAuthor;
    }

    public String getBookAuthor()
    {
        return bookAuthor;
    }
    public void setBookPrice(BigDecimal bookPrice)
    {
        this.bookPrice = bookPrice;
    }

    public BigDecimal getBookPrice()
    {
        return bookPrice;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBookIntroduction(String bookIntroduction)
    {
        this.bookIntroduction = bookIntroduction;
    }

    public String getBookIntroduction()
    {
        return bookIntroduction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bookName", getBookName())
                .append("bookAuthor", getBookAuthor())
                .append("bookPrice", getBookPrice())
                .append("userId", getUserId())
                .append("bookIntroduction", getBookIntroduction())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
